def insertSortScores(scoreList,nameList,yearSize):
    for i in range(1,yearSize):
        currentIndex = i
        scoreToInsert = scoreList[i]
        nameToInsert = nameList[i]
        while scoreToInsert > scoreList[currentIndex - 1] and currentIndex > 0:
            scoreList[currentIndex] = scoreList[currentIndex - 1]
            nameList[currentIndex] = nameList[currentIndex - 1]
            currentIndex -= 1
        scoreList[currentIndex] = scoreToInsert
        nameList[currentIndex] = nameToInsert


if __name__ == '__main__':
    scoreList = [97,98,96]
    nameList = [['morgen','wang'],['mrak','yan'],['jason','liu']]
    yearSize = 3
    insertSortScores(scoreList,nameList,yearSize)
    print(scoreList)
    print(nameList)
